package the.broccoli.setting.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import org.wisteria.framework.web.mvc.entity.SuperEntity;

/**
 * <p>
 * 附件
 * </p>
 *
 * @author lei.liu
 * @since 2020-04-24
 */
@Data
@TableName("platform_file")
public class BroFile extends SuperEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 附件ID
     */
    @TableId("file_id")
    private String fileId;

    /**
     * 文件名称
     */
    @TableField("file_name")
    private String fileName;

    /**
     * 文件路径
     */
    @TableField("file_url")
    private String fileUrl;

    /**
     * 文件大小
     */
    @TableField("file_size")
    private String fileSize;

    /**
     * 文件后缀
     */
    @TableField("file_suffix")
    private String fileSuffix;

    @TableField("file_category")
    private Integer fileCategory;

    @TableField("target_id")
    private String targetId;

    @Override
    public String toString() {
        return "File{" +
            "fileId=" + fileId +
            ", fileName=" + fileName +
            ", fileUrl=" + fileUrl +
            ", fileSize=" + fileSize +
            ", fileSuffix=" + fileSuffix +
        "}";
    }
}
